import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAppStore = defineStore('app', () => {
  // state
  const loading = ref(false)

  // actions
  const setLoading = (status: boolean) => {
    loading.value = status
  }

  return {
    loading,
    setLoading,
  }
}) 